package com.example.tao_city.text1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Switch;
import android.widget.TextView;

/**
 * Created by TAO_CITY on 2018/1/24.
 */

public class Denlu_Zhuche extends Activity implements View.OnClickListener {
    private TextView zizhuzc,wjmm;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.zhuchedenglu);
        initview();
    }

    private void initview() {
        zizhuzc=findViewById(R.id.zhuche_zizhuzc);
        wjmm=findViewById(R.id.zhuche_wanjimima);

        zizhuzc.setOnClickListener(this);
        wjmm.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.zhuche_zizhuzc:
                Intent i=new Intent();
                i.setClass(this,Zhanghao_zhuche.class);
                startActivity(i);
                break;
            case R.id.zhuche_wanjimima:
                Intent i1=new Intent();
                i1.setClass(this,Wangjimima.class);
                startActivity(i1);
                break;
        }

    }
}
